package com.cade.agriculturemall.model;

import android.content.Intent;
import android.location.Address;

import com.avos.avoscloud.AVClassName;
import com.avos.avoscloud.AVObject;
import com.avos.avoscloud.AVUser;

/**
 * Created by Lobby on 2018/1/5.
 */

@AVClassName("order")
public class OrderEntity extends AVObject {
    String orderId;                  //点单编号
    String countPrice;               //订单实付金额
    String userId;                  //用户Id
    String orderSetttlementTime;  //订单创建时间
    Integer count;              //商品项数量
    Integer payWay;         //1：支付宝  2：微信 3：百度钱包
    String remarks;             //备注
    String addressId;           //地址
    String orderStatus;         //1未付款,2已付款,3已发货,4已签收,5退货申请,6退货中,7已退货,8取消交易
    //1待付款,2待发货3待收货,4待评价,5、6、7、8取消交易
    String dealOrderId;
    String orderPriceCount;
    String proNum;

    public String getOrderId() {
        return getString("order_no");
    }

    public void setOrderId(String orderId) {
        put("order_no", orderId);
    }

    public String getOrderPrice() {
        return getString("order_amount_total");
    }

    public void setOrderPrice(String countPrice) {
        put("order_amount_total", countPrice);
    }

    public String getUserId() {
        return getString("user_Id");
    }

    public void setUserId(String userId) {
        put("user_Id", userId);
    }

    public String getOrderSetttlementTime() {
        return getString("order_setttlement_time");
    }

    public void setOrderSetttlementTime(String orderSetttlementTime) {
        put("order_setttlement_time", orderSetttlementTime);
    }

    public String getProNum() {
        return getString("goods_count");
    }

    public void setProNum(String count) {
        put("goods_count", count);
    }

    public Integer getPayWay() {
        return (Integer) getNumber("payway");
    }

    public void setPayWay(Integer payWay) {
        put("payway", payWay);
    }

    public String getRemarks() {
        return getString("remark");
    }

    public void setRemarks(String remarks) {
        put("remark", remarks);
    }

    public AddressEntity getAddressId() {
        return (AddressEntity) get("addressId");
    }

    public void setAddressId(AddressEntity addressId) {
        put("addressId", addressId);
    }

//    public String getOrderStatus() {
//        return getString("order_status");
//    }
//
//    public void setOrderStatus(String orderStatus) {
//        put("order_status", orderStatus);
//    }

    public String getOrderStatus() {
        return getString("order_status");
    }

    public void setOrderStatus(String orderStatus) {
        put("order_status", orderStatus);
    }

    public String getDealOrderId() {
        return getString("deal_no");
    }

    public void setDealOrderId(String dealOrderId) {
        put("deal_no", dealOrderId);
    }

    public String getOrderPriceCount() {
        return getString("orderPriceCount");
    }

    public void setOrderPriceCount(String orderPriceCount) {
        put("orderPriceCount", orderPriceCount);
    }

    public String getOrderPayMoney() {
        return getString("order_pay_money");
    }

    public void setOrderPayMoney(String orderPayMoney) {
        put("order_pay_money", orderPayMoney);
    }

    public String getTicketId() {
        return getString("tick_Id");
    }

    public void setTicketId(String ticketId) {
        put("tick_Id", ticketId);
    }
}
